<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>Login Page | Amaze UI Example</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="alternate icon" type="image/png" href="/static/assets/i/favicon.png">
  <link rel="stylesheet" href="/static/assets/css/amazeui.min.css"/>
  <style>
    .header {
      text-align: center;
    }
    .header h1 {
      font-size: 200%;
      color: #333;
      margin-top: 30px;
    }
    .header p {
      font-size: 14px;
    }
  </style>
</head>
<body>
<div class="header">
  <div class="am-g">
    <h1>图书后台管理系统</h1>
    <p>Development Environment<br/>测试版本</p>
  </div>
  <hr />
</div>
<style>
  #yzm{
    position: absolute;
    top: -55px;
    right: 10px;
  }
</style>
<div class="am-g">
  <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
    <form method="post" class="am-form" action="{% url 'myadmin_relogin' %}" enctype="multipart/form-data">
      {% csrf_token %}
      <label>手机号:</label>
      <input type="text" name="phonenum" required value="">
      <br>
      <label>密码:</label>
      <input type="password" name="password" required value="">
      <br>
      <br>
      <label>验证码:</label>
      <input type="text" name="code" required value="">
      <br>
      <div style="position: relative;">
        <!-- 验证码 -->
        {% comment %}
          <img id="yzm" ondblclick="this.src=this.src+'?1';alert(this.src)" src="http://127.0.0.1:8000/myadmin/yzm" alt="">
          静态资源不会重复加载，必须生成一个新的对象
        {% endcomment %}
        <img id="yzm" ondblclick="this.src='{% url 'myadmin_yzm' %}?'+ Math.random(); " src="http://127.0.0.1:8000/myadmin/yzm" alt="">
      </div>
      <br>
      <br>
      <div class="am-cf">
        <input type="submit" name="" value="登 录" class="am-btn am-btn-primary am-btn-sm am-fl">
      </div>
    </form>
  </div>
</div>
</body>
</html>
